package com.ark.controller.system;

import com.ark.common.domain.entity.sys.SysMenu;
import com.ark.common.response.Result;
import com.ark.service.service.SysMenuService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.annotation.security.PermitAll;

@RestController
@RequestMapping("/api/menu")
public class SysMenuController {

    @Resource
    private SysMenuService menuService;


    @RequestMapping("/list")
    public Result list(SysMenu menu){
        return Result.success(menuService.selectMenuList(menu));
    }
}
